Giovanni Campagna [Fri, 12 Jul 2013 14:49:52 +0000 (16:49 +0200)]
gdk/wayland: cope with the compositor implementing an older protocol than us
If we bind to a global with an higher version than implemented, or
we make requests that appeared in a later version, we would get
fatal wayland errors.
https://bugzilla.gnome.org/show_bug.cgi?id=704104
Victor Ibragimov [Tue, 16 Jul 2013 08:43:57 +0000 (13:43 +0500)]
Tajik translation updated
Benjamin Otte [Mon, 15 Jul 2013 17:42:29 +0000 (19:42 +0200)]
reftests: Fix broken reftest
GtkMenuItem has no accel group.
Kjartan Maraas [Mon, 15 Jul 2013 17:40:24 +0000 (19:40 +0200)]
Updated Norwegian bokmål translation
William Jon McCann [Mon, 15 Jul 2013 16:37:58 +0000 (12:37 -0400)]
Fix infobar docs to not mention type colors
The theme may not use colors to distinguish the info bar
message types.
William Jon McCann [Mon, 15 Jul 2013 13:49:32 +0000 (09:49 -0400)]
Make the info bar action area border the same as the internal spacing
Using a consistent spacing feels much more polished.
William Jon McCann [Mon, 15 Jul 2013 13:33:44 +0000 (09:33 -0400)]
Make info bar action area horizontal
A vertical action area causes the info bar to be imposingly large.
This defeats the whole point of the info bar which is to be
unobtrusive. Not to mention it is impossible to make it look
and feel good.
William Hua [Sun, 14 Jul 2013 22:07:05 +0000 (18:07 -0400)]
Bug 704216: Fix prototype for gdk_quartz_device_core_warp.
Sébastien Wilmet [Sat, 13 Jul 2013 19:07:08 +0000 (21:07 +0200)]
GtkSearchEntry: fix search_entry_clear_cb()
When the icon-release signal is emitted on a GtkSearchEntry, the
contents is now cleared only if it's for the secondary icon. The primary
icon can be used for another purpose.
https://bugzilla.gnome.org/show_bug.cgi?id=704164
Marek Černocký [Sun, 14 Jul 2013 09:39:17 +0000 (11:39 +0200)]
Updated Czech translation
Marek Černocký [Sun, 14 Jul 2013 09:25:32 +0000 (11:25 +0200)]
Updated Czech translation
Aurimas Černius [Sat, 13 Jul 2013 15:01:09 +0000 (18:01 +0300)]
Updated Lithuanian properties translation
Aurimas Černius [Sat, 13 Jul 2013 14:38:25 +0000 (17:38 +0300)]
Updated Lithuanian UI translation
Victor Ibragimov [Sat, 13 Jul 2013 13:39:22 +0000 (15:39 +0200)]
[l10n] Update Tajik translation
Victor Ibragimov [Fri, 12 Jul 2013 12:22:38 +0000 (17:22 +0500)]
Tajik translation updated
William Jon McCann [Wed, 10 Jul 2013 16:13:12 +0000 (12:13 -0400)]
Deprecate and ignore gtk-entry-password-hint-timeout
This feature offers a number of benefits related to providing
feedback to the user when the password is masked. Some experts have
argued that password masking is harmful. I tend to agree with this
setting providing a better and more moderate solution. Some agree:
https://www.schneier.com/blog/archives/2009/07/the_pros_and_co.html
In order to further lessen the impact I've only enabled the feature
on the primary display since the likelyhood of a non-primary display
being visible by others is higher.
William Jon McCann [Tue, 9 Jul 2013 20:47:59 +0000 (16:47 -0400)]
Deprecate and ignore timeout-expand setting
William Jon McCann [Tue, 9 Jul 2013 20:44:04 +0000 (16:44 -0400)]
Deprecate and ignore the timeout-initial and timeout-repeat settings
Behdad Esfahbod [Thu, 11 Jul 2013 19:28:49 +0000 (15:28 -0400)]
Update git.mk, respects AC_CONFIG_AUX_DIR now
Jasper St. Pierre [Thu, 11 Jul 2013 17:31:20 +0000 (13:31 -0400)]
Update git.mk
Jasper St. Pierre [Thu, 11 Jul 2013 17:11:38 +0000 (13:11 -0400)]
Ignore extract-strings
Jasper St. Pierre [Thu, 11 Jul 2013 16:57:06 +0000 (12:57 -0400)]
testsuite: Ignore generated .test files
Jasper St. Pierre [Thu, 11 Jul 2013 16:46:24 +0000 (12:46 -0400)]
Add more .pc files to .gitignore
Victor Ibragimov [Thu, 11 Jul 2013 15:13:07 +0000 (20:13 +0500)]
Tajik translation updated
Victor Ibragimov [Thu, 11 Jul 2013 12:52:02 +0000 (17:52 +0500)]
Tajik translation updated
Victor Ibragimov [Wed, 10 Jul 2013 08:51:32 +0000 (13:51 +0500)]
Tajik translation updated
Colin Walters [Wed, 10 Jul 2013 03:24:19 +0000 (23:24 -0400)]
Delete gtk/extract-strings binary from source
It was accidentally committed to git.
Matthias Clasen [Wed, 10 Jul 2013 00:28:03 +0000 (20:28 -0400)]
Bump version
Matthias Clasen [Tue, 9 Jul 2013 21:45:07 +0000 (17:45 -0400)]
3.9.8
Matthias Clasen [Wed, 10 Jul 2013 00:06:23 +0000 (20:06 -0400)]
Remove debug spew
Matthias Clasen [Wed, 10 Jul 2013 00:05:46 +0000 (20:05 -0400)]
Don't segfault when setting opacity on an offscreen window
This was causing the treeview tests to fail.
Matthias Clasen [Tue, 9 Jul 2013 23:18:08 +0000 (19:18 -0400)]
Revert the private macro change for GtkToolButton
There was a reason that GtkToolButton was not using the
G_DEFINE_TYPE macros - we need the klass argument to get
the proper button type at init time.
Rob Bradford [Tue, 9 Jul 2013 17:08:21 +0000 (18:08 +0100)]
wayland: Handle the display connection erroring out
wl_display_flush or wl_display_dispatch can return -1 if there is an
error on the display connection.
https://bugzilla.gnome.org/show_bug.cgi?id=703892
Kristian Høgsberg [Tue, 9 Jul 2013 22:35:06 +0000 (18:35 -0400)]
wayland: Don't clear revents until we've checked for G_IO_HUP
https://bugzilla.gnome.org/show_bug.cgi?id=703892
Matthias Clasen [Tue, 9 Jul 2013 17:49:39 +0000 (13:49 -0400)]
Fix a typo
Matthias Clasen [Tue, 9 Jul 2013 14:07:10 +0000 (10:07 -0400)]
Document new environment variables
Explain GDK_SCALE and GDK_DPI_SCALE.
Matthias Clasen [Tue, 9 Jul 2013 13:52:48 +0000 (09:52 -0400)]
Add new api to the gtk docs
Matthias Clasen [Tue, 9 Jul 2013 13:43:18 +0000 (09:43 -0400)]
Add new gdk api to the docs
William Jon McCann [Mon, 8 Jul 2013 20:42:44 +0000 (16:42 -0400)]
Deprecate and hardcode gtk-recent-files-limit
The GtkRecentChooser already has a property that can be used
to set this on a per widget basis and the recent manager already
has a max-age limit.
Matthias Clasen [Tue, 9 Jul 2013 11:12:18 +0000 (07:12 -0400)]
places sidedbar: deal with lack of symbolics
Use g_themed_icon_new_with_default_fallbacks, so we don't end up
without icons when the theme doesn't have symbolic icons.
https://bugzilla.gnome.org/show_bug.cgi?id=703606
Kjell Ahlstedt [Fri, 5 Jul 2013 13:42:31 +0000 (15:42 +0200)]
Continue the deprecation of GtkIconSet
Deprecate gtk_icon_set_render_icon_surface() and gtk_image_get_icon_set(),
which take parameters of the deprecated GtkIconSet.
https://bugzilla.gnome.org/show_bug.cgi?id=703616
Kjell Ahlstedt [Fri, 5 Jul 2013 13:17:24 +0000 (15:17 +0200)]
Fix some inconsistent deprecations
Some functions had only a deprecation comment in the .c file, or only a
deprecation annotation in the .h file. Add the missing parts.
https://bugzilla.gnome.org/show_bug.cgi?id=703616
aakash [Mon, 8 Jul 2013 21:41:27 +0000 (03:11 +0530)]
gtkrecentmanager: Avoid confusion between the meta-data and the actual resource.
Fixed the documentation to clarify that gtk_recent_info_get_visited
and gtk_recent_info_get_modified are actually about the recent info
meta-data rather than the resource itself.
https://bugzilla.gnome.org/show_bug.cgi?id=703827
Victor Ibragimov [Tue, 9 Jul 2013 10:11:15 +0000 (15:11 +0500)]
Tajik translation updated
Rob Bradford [Tue, 9 Jul 2013 09:04:12 +0000 (10:04 +0100)]
wayland: request appropriate compositor version to support buffer scale
With the introduction of the use of buffer scaling in ed4fcee4ct we
must request version 3 of the compositor as that is the version of the
surface interface that adds this new functionality. See the following
commit in weston:
commit
a85118c1b85df6fbf8f896dca971a5b79a94da71
Author: Jason Ekstrand <jason@jlekstrand.net>
Date: Thu Jun 27 20:17:02 2013 -0500
Use wl_resource_create() for creating resources
This commit sets the version numbers for all added/created objects. The
wl_compositor.create_surface implementation was altered to create a surface
with the same version as the underlying wl_compositor. Since no other
"child interfaces" have version greater than 1, they were all hard-coded to
version 1.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
https://bugzilla.gnome.org/show_bug.cgi?id=703817
Emmanuele Bassi [Thu, 4 Jul 2013 23:09:37 +0000 (00:09 +0100)]
docs: Update the coding style
We should mention that newly written code should not have the private
data pointer in the instance structure, and that private data should be
added using the new GObject macros.
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Emmanuele Bassi [Thu, 4 Jul 2013 23:09:31 +0000 (00:09 +0100)]
tests: Use the new macros for adding instance private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Emmanuele Bassi [Thu, 4 Jul 2013 23:09:12 +0000 (00:09 +0100)]
gtk-demo: Use the new macros for adding instance private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Emmanuele Bassi [Thu, 4 Jul 2013 23:08:37 +0000 (00:08 +0100)]
deprecated: Use the new macros for adding instance private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Emmanuele Bassi [Thu, 27 Jun 2013 19:02:52 +0000 (20:02 +0100)]
gtk: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Emmanuele Bassi [Mon, 24 Jun 2013 18:13:44 +0000 (19:13 +0100)]
a11y: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Emmanuele Bassi [Mon, 24 Jun 2013 17:54:05 +0000 (18:54 +0100)]
gdk: Use new macros for defining private data
Drop the g_type_class_add_private() function, and use the macros
instead.
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Emmanuele Bassi [Mon, 24 Jun 2013 17:52:05 +0000 (18:52 +0100)]
Bump GLib dependency to 2.37.3
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Bastien Nocera [Fri, 5 Jul 2013 14:05:56 +0000 (16:05 +0200)]
GtkSearchBar: Don't show a close button by default
And mention in which cases we should show one in the documentation.
https://bugzilla.gnome.org/show_bug.cgi?id=703656
Jürg Billeter [Mon, 8 Jul 2013 07:41:03 +0000 (09:41 +0200)]
wayland: Fix build due to missing symbol export
https://bugzilla.gnome.org/show_bug.cgi?id=703765
Daiki Ueno [Wed, 3 Jul 2013 10:03:30 +0000 (19:03 +0900)]
textlayout: avoid double-free when adding preedit color
In add_preedit_attrs, don't free foreground/background colors already
set in the underlying text attributes (style). They will be free'd by
release_style.
https://bugzilla.gnome.org/show_bug.cgi?id=703533
Matthias Clasen [Tue, 9 Jul 2013 01:46:43 +0000 (21:46 -0400)]
Fix the small text for text in GtkAboutDialog
The conversion from gtk_widget_override_font to a GtkTextTag
in
fbbb66ae7d19516b7a99de3d8b0a96164fb3ead2 was defective.
https://bugzilla.gnome.org/show_bug.cgi?id=701119
William Jon McCann [Mon, 8 Jul 2013 19:39:55 +0000 (15:39 -0400)]
Add missing G_PARAM_DEPRECATED to stock deprecations
William Jon McCann [Mon, 8 Jul 2013 19:28:25 +0000 (15:28 -0400)]
Add missing G_PARAM_DEPRECATED to gtksettings
William Jon McCann [Mon, 8 Jul 2013 17:45:01 +0000 (13:45 -0400)]
Deprecate and hardcode default toolbar icon size setting
Toolbar icon size can still be changed on a per-widget basis as
needed by the application developer.
William Jon McCann [Mon, 8 Jul 2013 17:28:48 +0000 (13:28 -0400)]
Deprecate and hardcode default toolbar style setting
Toolbar style can still be changed on a per-widget basis as
needed by the application developer.
William Jon McCann [Mon, 8 Jul 2013 17:13:23 +0000 (13:13 -0400)]
Deprecate and hardcode values for gtk-tooltip* timeouts
William Jon McCann [Mon, 8 Jul 2013 16:53:23 +0000 (12:53 -0400)]
Deprecate and hardcode the value of visible-focus setting
Just use the default value of AUTOMATIC and make it just work.
Benjamin Otte [Mon, 8 Jul 2013 14:23:42 +0000 (16:23 +0200)]
build: Update for perf/ directory removal
Ooops.
Benjamin Otte [Mon, 8 Jul 2013 14:17:46 +0000 (16:17 +0200)]
perf: Delete
The perf/ directory was unused and the code was outdated. So it's easier
to delete than trying to modernize the code.
Benjamin Otte [Mon, 8 Jul 2013 14:17:18 +0000 (16:17 +0200)]
tools: Fix casting warnings
Matthias Clasen [Sun, 7 Jul 2013 01:53:15 +0000 (21:53 -0400)]
fix close button in testtitlebar as well
Same disease as with the previous fix.
Matthias Clasen [Sun, 7 Jul 2013 01:49:25 +0000 (21:49 -0400)]
csd: Fix up close buttons
Must pass the window as first argument to the signal handler.
Matthias Clasen [Sat, 6 Jul 2013 01:43:16 +0000 (21:43 -0400)]
Cosmetics
Piotr Drąg [Sat, 6 Jul 2013 15:09:15 +0000 (17:09 +0200)]
Updated POTFILES.skip
Trần Ngọc Quân [Sat, 6 Jul 2013 11:39:37 +0000 (18:39 +0700)]
Updated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 6 Jul 2013 11:30:54 +0000 (18:30 +0700)]
po/vi: import from Damned Lies
Matthias Clasen [Fri, 5 Jul 2013 21:15:31 +0000 (17:15 -0400)]
Don't prematurely mark window as realized
Other code assumes that the widget has a window if it is realized.
Since we might trigger such code indirectly from gtk_window_realize,
don't mark the window as realized before we've registered its window.
Matthias Clasen [Fri, 5 Jul 2013 18:24:38 +0000 (14:24 -0400)]
Cosmetic cleanups
Avoid some unnecessary casts.
Matthias Clasen [Fri, 5 Jul 2013 18:53:05 +0000 (14:53 -0400)]
csd: hide invisible borders when tiled or fullscreen
This is the expected behavior, and matches what mutter does.
Matthias Clasen [Fri, 5 Jul 2013 18:25:30 +0000 (14:25 -0400)]
csd: fix a resizing artifacts when unmaximizing
When using Super-up/down to maximize and unmaximize a csd window,
the titlebar and content was not picking up the window borders.
Matthias Clasen [Fri, 5 Jul 2013 17:59:41 +0000 (13:59 -0400)]
csd: no border when fullscreen
The was a missing fullscreen check in get_decoration_size was causing
the window background to have a transparent border when fullscreen.
Alexander Larsson [Fri, 5 Jul 2013 13:21:55 +0000 (15:21 +0200)]
reftest: Add reftest for scaled image borders - fails on GDK_SCALE=2
Matthias Clasen [Thu, 4 Jul 2013 21:52:09 +0000 (17:52 -0400)]
gtk-demo: Properly cleanup the revealer demo
We forgot to remove the timeout.
Kalev Lember [Thu, 4 Jul 2013 13:50:09 +0000 (15:50 +0200)]
GtkListBox: Add g_return_if_fail checks to public row functions
Kalev Lember [Thu, 4 Jul 2013 12:15:22 +0000 (14:15 +0200)]
testsuite: Add tests for gtk_list_box_row_get_index
https://bugzilla.gnome.org/show_bug.cgi?id=703618
Kalev Lember [Thu, 4 Jul 2013 11:40:21 +0000 (13:40 +0200)]
GtkListBox: Add a function for getting the index of a row
https://bugzilla.gnome.org/show_bug.cgi?id=703618
Kalev Lember [Thu, 4 Jul 2013 11:39:07 +0000 (13:39 +0200)]
GtkListBox: Remove a double semicolon
Alexander Larsson [Thu, 4 Jul 2013 11:30:51 +0000 (13:30 +0200)]
stack: Use normal opacity groups rather than weird ones in GtkWidget
Since we now do all drawing propagation on the cairo_t (rather than
exposing multiple independent times on the GdkWindows) we no longer
need the opacity 0.999 hack.
Alexander Larsson [Thu, 4 Jul 2013 11:16:05 +0000 (13:16 +0200)]
widget: Remove some leftover code
The norender stuff is not used anymore
Alexander Larsson [Thu, 4 Jul 2013 10:54:59 +0000 (12:54 +0200)]
widget: Don't crash if setting alpha on non-realized widget.
https://bugzilla.gnome.org/show_bug.cgi?id=703154
Bastien Nocera [Mon, 1 Jul 2013 17:46:13 +0000 (19:46 +0200)]
GtkSearchBar: Fix automatic entry connection
Adding an entry to the search bar didn't automatically connect
the signals as expected as the code was in the wrong branch.
https://bugzilla.gnome.org/show_bug.cgi?id=703406
Matthias Clasen [Wed, 3 Jul 2013 23:52:11 +0000 (19:52 -0400)]
Avoid deprecation warning
There was one overlooked use of GTK_STOCK_MISSING_IMAGE.
Rob Bradford [Wed, 3 Jul 2013 15:19:39 +0000 (16:19 +0100)]
wayland: Create the Wayland surface for the window on impl creation
Ths allows the retrieval of the wl_surface before the window is shown.
The surface is still created in the original places since the surface
and shell surface is destroyed when the surface is programmatically
hidden.
Michael Forney [Mon, 1 Jul 2013 22:51:20 +0000 (15:51 -0700)]
wayland: Fix typo in setting of core_pointer
This typo caused the display's core_pointer to be set only if the mouse
was first in the device list.
https://bugzilla.gnome.org/show_bug.cgi?id=703434
Alexander Larsson [Wed, 3 Jul 2013 14:03:25 +0000 (16:03 +0200)]
wayland: Add custom create_similar_image implementation
The fallback method is used on other backends, but it caused
problems for wayland when it tried to create a surface for
the root window.
Alexander Larsson [Wed, 3 Jul 2013 11:26:03 +0000 (13:26 +0200)]
File chooser: Convert icons to using cairo_surface_t
Alexander Larsson [Wed, 26 Jun 2013 14:34:53 +0000 (16:34 +0200)]
GtkCellRendererPixbuf: Add surface property
Alexander Larsson [Wed, 26 Jun 2013 14:33:50 +0000 (16:33 +0200)]
GtkImage: Add new_from_surface() and set_from_surface()
Alexander Larsson [Mon, 24 Jun 2013 12:13:43 +0000 (14:13 +0200)]
GtkIconHelper: Convert to using cairo surfaces as base and support scales
We render the source into a cairo_surface_t so that we can render it
with cairo directly, rather than having to convert it from a pixbuf
every time. We also specify the target window when creating the cairo
surface so that rendering can be faster.
Using cairo surfaces also allows us to seamlessly support window scales.
We also add a GTK_IMAGE_SURFACE source type.
Alexander Larsson [Tue, 25 Jun 2013 11:59:51 +0000 (13:59 +0200)]
icon factory: Add gtk_icon_set_render_icon_surface
Support scales when falling back to loading icons from the
icon theme.
In order to actually render scaled icons we add
gtk_icon_set_render_icon_surface which renders to a cairo_surface_t
which includes whatever scaling you need for scaled icons.
Alexander Larsson [Mon, 24 Jun 2013 10:35:39 +0000 (12:35 +0200)]
stylecontext: add gtk_render_icon_surface
This draws an icon from a cairo_surface. We want to use this more rather
than render_icon as this means we can skip the pixbuf to surface
conversion (including allocation and alpha premultiplication) at
render time, plus we can use create_similar_image which may allow
faster rendering.
Alexander Larsson [Wed, 26 Jun 2013 14:26:43 +0000 (16:26 +0200)]
GtkIconTheme: Add helpers to load to cairo_surface_t
Right now this just uses the pixbuf load code and converts
it to a surface. In the future we could cache the pattern
to allow reusing the surface.
Carlos Garnacho [Fri, 10 May 2013 16:06:00 +0000 (18:06 +0200)]
icontheme: Add support for high resolution icons
An optional OutputScale integer key has been added to index.theme
subdirs description, so icon themes may provide icons that are
more suitable to render at a (typically 2x) integer upscaled
resolution. This way it is possible to make eg. a 16x16@2x icon has a
real size of 32x32, but contains a similar level of detail to the
16x16 icon so things don't look any more cluttered on high-dpi
screens.
The pixbuf lookup has changed so it prefers a minimal scale change
that yields the minimal real size difference, so if looking up for
a 16x16 icon at 2x, it would first prefer 16x16@2x, then 32x32, and
then any other icon that's closest to match
There is now *_for_scale() variants for all GtkIconTheme ways
to directly or indirectly fetch a GdkPixbuf.
This is based on code by Carlos Garnacho with changes by Alexander
Larsson
Alexander Larsson [Wed, 26 Jun 2013 09:28:33 +0000 (11:28 +0200)]
CellRendererPixbuf: Set the window on the icon helper
This lets us get scaled icons if needed.